import React from 'react';
import { string, func } from 'prop-types';
const propTypes = {
  iconClass: string,
  title: string,
  titleStyle: string,
  onClick: func
};
function IconCell({ iconClass, title, titleStyle, onClick }) {
  return (
    <div onClick={onClick ? onClick : () => {}}>
      <i
        className={`${iconClass} iconfont`}
        style={{ marginRight: '0.2rem' }}
      />{' '}
      <span
        style={titleStyle ? titleStyle : { fontSize: '0.56rem', color: '#555' }}
      >
        {title}
      </span>
    </div>
  );
}
IconCell.propTypes = propTypes;
export default IconCell;
